package android.framework.paging;

import java.util.HashMap;

public class ObjectHolder {
	private HashMap<Class<?>, Object> objectMap = new HashMap<Class<?>, Object>();
	
	private static ObjectHolder instance  = new ObjectHolder();
	private ObjectHolder(){}
	public static ObjectHolder getInstance(){
		return instance;
	}
	
	public void addObject(Class<?> cls, Object obj){
		objectMap.put(cls, obj);
	}
	
	public Object getObject(Class<?> cls){
		return objectMap.get(cls);
	}
}
